Package com.bitmovin.player.api.drm

Contains API to enable DRM playback.

Types

Link copied to clipboard
@RequiresApi(value = 21)
class ClearKeyConfig(entries: ClearKeyConfigEntry) : DrmConfig

Configures ClearKey key/value pairs to enable decryption of ClearKey protected content.

Link copied to clipboard
@RequiresApi(value = 21)
data class ClearKeyConfigEntry(key: String, kid: String?) : Parcelable

Represents a single ClearKey key/id pair.

Link copied to clipboard
abstract class DrmConfig : Parcelable

Configures decryption of DRM protected content.

Link copied to clipboard
data class DrmData(data: ByteArray, type: DrmData.Type)

Represents DRM information of type DrmData.Type.

Link copied to clipboard
class DrmRequest(drmData: DrmData, url: String, headers: Map<String?, String?>?, body: ByteArray?, httpMethod: String) : HttpRequest

An HTTP request for DRM information.

Link copied to clipboard
interface PrepareLicenseCallback
Can be implemented to prepare the license acquisition response.
Link copied to clipboard
interface PrepareMessageCallback
Can be implemented to prepare the license acquisition message which will be sent to the license acquisition server.
Link copied to clipboard
open class WidevineConfig : DrmConfig
Configures decryption of a Widevine DRM protected Source.